<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_表格插入</title>
</head>
<body>
<table border="1" style="border-collapse: collapse";>
    <caption>授课信息表</caption>
    <tr>
        <th >序号</th>
        <th >姓名</th>
        <th >课程</th>
    </tr>
    <tr>
        <td style="text-align: center">1</td>
        <td style="text-align: center">伟超</td>
        <td style="text-align: center">框架</td>
    </tr>
    <tr>
        <td style="text-align: center">2</td>
        <td style="text-align: center">晓宇</td>
        <td style="text-align: center">前后端项目</td>
    </tr>
    <tr>
        <td style="text-align: center">3</td>
        <td style="text-align: center">旭伟</td>
        <td style="text-align: center">微服务</td>
    </tr>

    <br>

<table border="1" >
        <tr>
            <!--跨列：从当前单元格开始,横着想右合并n个单元格,注意:被合并的单元格要删掉！-->
            <th colspan="3">1-1</th>
            <th>1-2</th>
            <!--<th>1-3</th>-->
            <!--<th>1-4</th>-->
        </tr>
        <tr>
            <th colspan="3">2-1</th>
<!--            <th>2-2</th>-->
<!--            <th>2-3</th>-->
            <!--跨行:从当前单元格开始,竖着向下合并n个单元格,注意:被合并的单元格要删掉-->
            <th rowspan="3">2-4</th>
        </tr>
        <tr>
            <th>3-1</th>
            <th rowspan="2">3-2</th>
            <th>3-3</th>
        <!--<th>3-4</th>-->
        </tr>
        <tr>
            <th>4-1</th>
<!--            <th>4-2</th>-->
            <th>4-3</th>
        <!--<th>4-4</th>-->
        </tr>
</table>
    <br>

    <table border="1" style="border-collapse: collapse">
        <caption>购物车</caption>
        <tr>
            <th>商品编号</th>
            <th>商品名称</th>
            <th>商品价格</th>
        </tr>
        <tr>
            <td>1</td>
            <td>荣耀X60</td>
            <td>2601</td>
        </tr>
        <tr>
            <td>2</td>
            <td>三折叠怎么折都有面</td>
            <td>27399</td>
        </tr>
        <tr>
            <td>总价:</td>
            <td colspan="2">3000</td>
        </tr>
    </table>






</body>
</html>